package com.lsec.springbootinit.model.entity;

import com.lsec.springbootinit.model.common.BaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 菜单权限表(SysMenu)实体类
 *
 * @author Cherry
 * @since 2023-06-30 15:26:45
 */

@Schema(description = "菜单权限表(SysMenu)实体类")
@AllArgsConstructor
@Data
@NoArgsConstructor
public class SysMenu extends BaseDO {

    /**
     * 菜单ID
     */
    @Schema(description = "菜单ID")
    private Long id;
    /**
     * 菜单名称
     */
    @Schema(description = "菜单名称")
    private String name;
    /**
     * 权限标识
     */
    @Schema(description = "权限标识")
    private String permission;
    /**
     * 父菜单ID
     */
    @Schema(description = "父菜单ID")
    private Long parentId;
    /**
     * 菜单类型（M目录 C菜单 F按钮）
     */
    @Schema(description = "菜单类型（M目录 C菜单 F按钮）")
    private Integer type;
    /**
     * 显示顺序
     */
    @Schema(description = "显示顺序")
    private Integer sort;
    /**
     * 路由地址
     */
    @Schema(description = "路由地址")
    private String path;
    /**
     * 菜单图标
     */
    @Schema(description = "菜单图标")
    private String icon;
    /**
     * 组件路径
     */
    @Schema(description = "组件路径")
    private String component;
    /**
     * 菜单状态（0正常 1停用）
     */
    @Schema(description = "菜单状态（0正常 1停用）")
    private Integer status;
    /**
     * 是否为外链（0是 1否）
     */
    @Schema(description = "是否为外链（0是 1否）")
    private Integer externalLink;
    /**
     * 是否缓存
     */
    @Schema(description = "是否缓存")
    private Integer keepAlive;


}

